<template>
  <div>
<header>
    <slot name="head"></slot>
</header>
<main>
    我是main标签内容
    <slot name="main"></slot>
</main>
<footer>
    <slot name="foot"></slot>
</footer>
<slot :user="user"></slot>
  </div>
</template>

<script>

export default {
  data () {
    return {
      user: {
        fName: '软软',
        lName: 'zz'
      }
    }
  }
}
</script>

<style>

</style>
